package com.dykj.fireFighting.web.service.impl;

import com.dykj.fireFighting.web.mapper.DevHisNbWaterMapper;
import com.dykj.fireFighting.web.model.report.DevHisNbWater;
import com.dykj.fireFighting.web.utils.UUIDUtils;
import com.dykj.fireFighting.web.service.DevHisNbWaterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 设备报警记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-08
 */
@Service
public class DevHisNbEdgeWaterImpl implements DevHisNbWaterService
{
    @Autowired
    private DevHisNbWaterMapper devHisNbWaterMapper;

    @Override
    public int insert(DevHisNbWater devHisNbWater) {
        devHisNbWater.setCreateTime(new Date());
        devHisNbWater.setId(UUIDUtils.get32UUID());
        return devHisNbWaterMapper.insert(devHisNbWater);
    }
}
